package cn.com.tarotframework.server.oauth.po;


import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.activerecord.Model;
import com.mybatisflex.core.keygen.KeyGenerators;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * copyright (C), 2022, 塔罗牌基础架构
 *
 * @program tarot-core
 * @description 用户映射数据库表实体类
 * @author Jiang Xincan
 * @version 0.0.1
 * @create 2024/01/20 18:54
 **/

@EqualsAndHashCode(callSuper = true)
@Table(value = "user")
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
@Data(staticConstructor = "create")
public class UserPo extends Model<UserPo> implements Serializable {

    @Serial
    private static final long serialVersionUID = 378838901071126648L;

    @Id(keyType = KeyType.Generator, value  = KeyGenerators.snowFlakeId)
    private String id;

    private String name;

    private String password;

    private String account;

    private String phone;

    private String email;

    private String address;

    private Integer sex;

    private String createUserId;

    private LocalDateTime createTime;

    private String editUserId;

    private LocalDateTime editTime;

}
